import {createRouter, createWebHistory} from 'vue-router'
import LoginView from "@/views/login/loginView.vue";
import HomeView from "@/views/home/HomeView.vue";
import BannerView from "@/views/home/BannerView.vue";
import ProductView from "@/views/product/ProductView.vue";
import FeedbackView from "@/views/feedback/FeedbackView.vue";

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            redirect: "/home"
        },
        {
            path: '/home',
            name: 'home',
            component: HomeView
        },
        {
            path: '/login',
            name: 'login',
            component: LoginView
        },
        {
            path: '/product',
            name: 'product',
            component: ProductView
        },
        {
            path: '/feedback',
            name: 'feedback',
            component: FeedbackView
        },
    ]
})

export default router
